<?php
include('../../../../../php/eliminar_cache.php');
include_once('../../../../../php/bd.php');
?>
<body>
<h5 align="center">Documentos Ingresos</h5>
<table cellspacing="0" cellpadding="0" class="striped sortable">
<thead><tr>
	<th>Nombre del Documento</th>
	<th>Opciones</th>
</tr></thead>
<tbody>
<?php
$bd = new DB();

$id = $_GET['id'];
@$select_doc = $bd->query("SELECT * FROM documentos_ingreso WHERE id_ing='$id'",OBJ);

if($select_doc->affected_rows > 0) {
foreach($select_doc->rows as $arr_docs){
	echo '<tr>';
	echo '<td>'.$arr_docs->numero_doc.'</td>';
	echo '<td>'.$arr_docs->nombre_doc.'</td>';
	echo '</tr>';
}
}else{
	echo '<tr>';
	echo '<td></td>';
	echo '<td></td>';
	echo '</tr>';
}

?>
</tbody>
</table>
</body>
